<?php

namespace AdminBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * TaskJobSteps
 *
 * @ORM\Table(name="task_job_steps")
 * @ORM\Entity
 */
class TaskJobSteps
{
    /**
     * @var string
     *
     * @ORM\Column(name="name", type="string", length=45, nullable=false)
     */
    private $name;

    /**
     * @var string
     *
     * @ORM\Column(name="note", type="string", length=45, nullable=false)
     */
    private $note = '';

    /**
     * @var boolean
     *
     * @ORM\Column(name="is_enabled", type="boolean", nullable=false)
     */
    private $isEnabled = '1';

    /**
     * @var string
     *
     * @ORM\Column(name="creator", type="string", length=45, nullable=false)
     */
    private $creator = '';

    /**
     * @var string
     *
     * @ORM\Column(name="ip", type="string", length=20, nullable=false)
     */
    private $ip = '';

    /**
     * @var \DateTime
     *
     * @ORM\Column(name="ctime", type="datetime", nullable=false)
     */
    private $ctime = 'CURRENT_TIMESTAMP';

    /**
     * @var integer
     *
     * @ORM\Column(name="job_id", type="integer", nullable=false)
     */
    private $jobId = '0';

    /**
     * @var integer
     *
     * @ORM\Column(name="step_id", type="integer", nullable=false)
     */
    private $stepId = '0';

    /**
     * @var integer
     *
     * @ORM\Column(name="template_id", type="integer", nullable=false)
     */
    private $templateId = '0';

    /**
     * @var boolean
     *
     * @ORM\Column(name="is_rand", type="boolean", nullable=false)
     */
    private $isRand = '0';

    /**
     * @var integer
     *
     * @ORM\Column(name="recurrence_factor", type="integer", nullable=false)
     */
    private $recurrenceFactor = '1';

    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    private $id;



    /**
     * Set name
     *
     * @param string $name
     *
     * @return TaskJobSteps
     */
    public function setName($name)
    {
        $this->name = $name;

        return $this;
    }

    /**
     * Get name
     *
     * @return string
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * Set note
     *
     * @param string $note
     *
     * @return TaskJobSteps
     */
    public function setNote($note)
    {
        $this->note = $note;

        return $this;
    }

    /**
     * Get note
     *
     * @return string
     */
    public function getNote()
    {
        return $this->note;
    }

    /**
     * Set isEnabled
     *
     * @param boolean $isEnabled
     *
     * @return TaskJobSteps
     */
    public function setIsEnabled($isEnabled)
    {
        $this->isEnabled = $isEnabled;

        return $this;
    }

    /**
     * Get isEnabled
     *
     * @return boolean
     */
    public function getIsEnabled()
    {
        return $this->isEnabled;
    }

    /**
     * Set creator
     *
     * @param string $creator
     *
     * @return TaskJobSteps
     */
    public function setCreator($creator)
    {
        $this->creator = $creator;

        return $this;
    }

    /**
     * Get creator
     *
     * @return string
     */
    public function getCreator()
    {
        return $this->creator;
    }

    /**
     * Set ip
     *
     * @param string $ip
     *
     * @return TaskJobSteps
     */
    public function setIp($ip)
    {
        $this->ip = $ip;

        return $this;
    }

    /**
     * Get ip
     *
     * @return string
     */
    public function getIp()
    {
        return $this->ip;
    }

    /**
     * Set ctime
     *
     * @param \DateTime $ctime
     *
     * @return TaskJobSteps
     */
    public function setCtime($ctime)
    {
        $this->ctime = $ctime;

        return $this;
    }

    /**
     * Get ctime
     *
     * @return \DateTime
     */
    public function getCtime()
    {
        return $this->ctime;
    }

    /**
     * Set jobId
     *
     * @param integer $jobId
     *
     * @return TaskJobSteps
     */
    public function setJobId($jobId)
    {
        $this->jobId = $jobId;

        return $this;
    }

    /**
     * Get jobId
     *
     * @return integer
     */
    public function getJobId()
    {
        return $this->jobId;
    }

    /**
     * Set stepId
     *
     * @param integer $stepId
     *
     * @return TaskJobSteps
     */
    public function setStepId($stepId)
    {
        $this->stepId = $stepId;

        return $this;
    }

    /**
     * Get stepId
     *
     * @return integer
     */
    public function getStepId()
    {
        return $this->stepId;
    }

    /**
     * Set templateId
     *
     * @param integer $templateId
     *
     * @return TaskJobSteps
     */
    public function setTemplateId($templateId)
    {
        $this->templateId = $templateId;

        return $this;
    }

    /**
     * Get templateId
     *
     * @return integer
     */
    public function getTemplateId()
    {
        return $this->templateId;
    }

    /**
     * Set isRand
     *
     * @param boolean $isRand
     *
     * @return TaskJobSteps
     */
    public function setIsRand($isRand)
    {
        $this->isRand = $isRand;

        return $this;
    }

    /**
     * Get isRand
     *
     * @return boolean
     */
    public function getIsRand()
    {
        return $this->isRand;
    }

    /**
     * Set recurrenceFactor
     *
     * @param integer $recurrenceFactor
     *
     * @return TaskJobSteps
     */
    public function setRecurrenceFactor($recurrenceFactor)
    {
        $this->recurrenceFactor = $recurrenceFactor;

        return $this;
    }

    /**
     * Get recurrenceFactor
     *
     * @return integer
     */
    public function getRecurrenceFactor()
    {
        return $this->recurrenceFactor;
    }

    /**
     * Get id
     *
     * @return integer
     */
    public function getId()
    {
        return $this->id;
    }
}
